﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OVS.CoreDomain.Data
{
    public interface IDalCandidate
    {
        ICandidate GetCandidate(string voterId, IConstituency constituency );
        ICandidate GetCandidate(int candidateId);
       IList<ICandidate> SearchCandidates(ICandidateSearchCriteria candidateSearchCriteria);

        bool AddCandidate(ICandidate candidate);
        bool UpdateCandidate(ICandidate candidate);
        List<ICandidate> GetCandidates(IConstituency constituency);
        bool UpdateVote(ICandidate candidate, IVoter voter);
        ICandidate GetVote(ICandidate candidate);



    }
}
